package com.scpii.universal.pns.service;

import java.util.List;
import java.util.Map;

import com.scpii.universal.hibernate.dao.BaseDao;
import com.scpii.universal.hibernate.entity.ActiveUserTab;
import com.scpii.universal.hibernate.intface.BaseInterface;
import com.scpii.universal.pns.hibernate.entity.Users;

public class UsersService implements BaseInterface<Users> {

	private BaseDao<Users> usersDao;

	public void setUsersDao(BaseDao<Users> usersDao) {
		this.usersDao = usersDao;
	}

	public Users get(Long id) throws Exception {
		return usersDao.get(id);
	}

	public List<Users> getAll() throws Exception {
		return usersDao.getAll();
	}

	public Users get(String propertyName, Object value)
			throws Exception {
		return null;
	}

	public List<Users> getList(String propertyName, Object value)
			throws Exception {
		return null;
	}

	public Long getTotalCount() throws Exception {
		return null;
	}

	public void save(Users obj) throws Exception {
		usersDao.save(obj);
	}

	public void update(ActiveUserTab obj) throws Exception {

	}

	public void delete(ActiveUserTab obj) throws Exception {

	}

	public void delete(Integer id) throws Exception {

	}

	public List<Users> hqlGetList(String hql,
			Map<String, Object> argsMap) throws Exception {
		return usersDao.hqlGetList(hql, argsMap);
	}

	public void hqlUpdate(String namedHqlQuery, Map<String, Object> argsMap)
			throws Exception {
		usersDao.hqlUpdate(namedHqlQuery, argsMap);
	}

	public Long hqlGetNums(String namedHqlQuery, Map<String, Object> argsMap)
			throws Exception {
		return usersDao.hqlGetNums(namedHqlQuery, argsMap);
	}

	public List<Users> sqlGetList(String sqls,
			Map<String, Object> argsMap) throws Exception {
		return usersDao.sqlGetList(sqls, argsMap);
	}

	public void sqlUpdate(String sqls, Map<String, Object> argsMap)
			throws Exception {
		usersDao.sqlUpdate(sqls, argsMap);
	}

	public Long sqlGetNum(String sqls, Map<String, Object> argsMap)
			throws Exception {
		return usersDao.sqlGetNum(sqls, argsMap);
	}
	//Setter

	@Override
	public void update(Users obj) throws Exception {
		
	}

	@Override
	public void delete(Users obj) throws Exception {
		
	}

	@Override
	public Users get(Integer id) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

}